package month4.day5.fly;

public class Plane implements Flight{
    private String brand;
    private int seating;

    @Override
    public void fly() {
        System.out.println("涡轮机旋转飞行");
    }
    public void show(){
        System.out.println("这是一台"+brand+"飞机，座位数是"+seating);
    }

    public Plane(String brand, int seating) {
        this.brand = brand;
        this.seating = seating;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getSeating() {
        return seating;
    }

    public void setSeating(int seating) {
        this.seating = seating;
    }
}
